package com.songlanyun.modules.publicbenefitmsg.controller.admin;

import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.common.utils.R;
import com.songlanyun.modules.publicbenefitmsg.service.PublicBenefitMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

//import org.apache.shiro.authz.annotation.RequiresPermissions;


/**
 * 公益记录
 *
 * @author wuchao
 * @email songlanyun@gmail.com
 * @date 2022-08-05 11:06:31
 */
@RestController
@RequestMapping("/admin/donation/msg")
public class PublicBenefitMsgAdminController {
    @Autowired
    private PublicBenefitMsgService publicBenefitMsgService;

    /**
     * 列表
     */
    @GetMapping("/page")
    //@RequiresPermissions(":donationrecord:list")
    public R page(@RequestParam Map<String, Object> params) {
        PageUtils page = publicBenefitMsgService.queryPage(params);

        return R.ok().put("page", page);
    }

}
